package com.hzncc.flowable_diboot.entity.invoicemanage;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 开票关联合同项目信息 Entity 定义
 * @author MyName
 * @version 1.0
 * @date 2024-11-08
 * Copyright © MyCorp
 */
@TableName("mdl_invoice_product")
@Getter
@Setter
@Accessors(chain = true)
public class InvoiceProduct extends BaseModel {

    private static final long serialVersionUID = 1282019986700543813L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 开票登记ID
     */
    @Length(max = 32, message = "开票登记ID长度应小于32")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String invoiceRegisterId;

    /**
     * Sap合同号
     */
    @Length(max = 100, message = "Sap合同号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String sapContractCode;

    /**
     * 合同号
     */
    @Length(max = 100, message = "合同号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractCode;

    /**
     * 销售组织
     */
    @Length(max = 100, message = "销售组织长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String salesGroup;

    /**
     * 客户性质
     */
    @Length(max = 100, message = "客户性质长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String customerType;

    /**
     * 合同类型
     */
    @Length(max = 100, message = "合同类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractType;

    /**
     * 合同签订单位
     */
    @Length(max = 100, message = "合同签订单位长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String recipient;

    /**
     * 销售办公室
     */
    @Length(max = 100, message = "销售办公室长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String salesTerritory;

    /**
     * 业务部门
     */
    @Length(max = 100, message = "业务部门长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String businessDept;

    /**
     * 签约人
     */
    @Length(max = 100, message = "签约人长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String signer;

    /**
     * 省份
     */
    @Length(max = 100, message = "省份长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String province;

    /**
     * 地市
     */
    @Length(max = 100, message = "地市长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String city;

    /**
     * 付款方式
     */
    @Length(max = 100, message = "付款方式长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String payType;

    /**
     * 订购项目
     */
    @Length(max = 100, message = "订购项目长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String orderItem;

    /**
     * 订购型号
     */
    @Length(max = 100, message = "订购型号长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String orderModel;

    /**
     * 机床类型
     */
    @Length(max = 100, message = "机床类型长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String machineToolType;

    /**
     * 系统配套机床
     */
    @Length(max = 100, message = "系统配套机床长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String supportingMachineTool;

    /**
     * 产品系列
     */
    @Length(max = 100, message = "产品系列长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String productSeries;

    /**
     * 档次
     */
    @Length(max = 100, message = "档次长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String grade;

    /**
     * 单价
     */
    @TableField()
    private BigDecimal productPrice;

    /**
     * 最终用户
     */
    @Length(max = 100, message = "最终用户长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String finalUser;

    /**
     * 账户分配
     */
    @Length(max = 100,message = "账户分配长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String accountAssignment;
    
}
